package com.example.entity.xml;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import lombok.Data;

import java.util.List;

@Data
public class Message {

    private String messageID;

    private String timeStamp;

    private User from;

    @JacksonXmlCData
    private String text;

    @JacksonXmlElementWrapper(localName = "Attachments")
    private List<Attachment> attachment;

    @Data
    public static class Attachment{
        private String fileName;
        private String base64;
        private String disposition= "atacer";
    }
}
